import http from "@/utils/http"
import {
	host
} from '@/config'

export default {
	getComment() {
		return http.get({
			url:`${host}/comment`
		});
	},
	
	getCommentInfo(itemId,typeId) {
		return http.get(`${host}/comment?itemId=${itemId}&typeId=${typeId}`);
	},
	postCommentInfo(itemId,typeId,content,parentId,talkTo){
		return http.post(`${host}/comment?itemId=${itemId}`,{
			typeId,
			content,
			parentId,
			talkTo
		})
	}
}